home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1979 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  1KB  |  57 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       _root.pepa.gotoAndPlay("bd");
  5.    }
  6.    else if(_root.poz == "c")
  7.    {
  8.       _root.pepa.gotoAndPlay("cd");
  9.    }
  10.    else if(_root.poz == "e")
  11.    {
  12.       _root.pepa.gotoAndPlay("ed");
  13.    }
  14.    else if(_root.poz == "f")
  15.    {
  16.       _root.pepa.gotoAndPlay("fd");
  17.    }
  18.    else if(_root.poz == "d")
  19.    {
  20.       if(_root.draglej == 0 || _root.draglej == 25)
  21.       {
  22.          _root.stopdragall();
  23.          if(_root.droggang < 2)
  24.          {
  25.             if(_root.izvuk == 1)
  26.             {
  27.                _root.loadzvuk.gotoAndPlay("hotdogtalk_talk");
  28.             }
  29.             else
  30.             {
  31.                _root.hotdogtalk.gotoAndPlay("talk");
  32.             }
  33.          }
  34.          else if(_root.izvuk == 1)
  35.          {
  36.             _root.loadzvuk.gotoAndPlay("hotdogtalk_talk2");
  37.          }
  38.          else
  39.          {
  40.             _root.hotdogtalk.gotoAndPlay("talk2");
  41.          }
  42.       }
  43.       else
  44.       {
  45.          _root.stopdragall();
  46.          if(_root.izvuk == 1)
  47.          {
  48.             _root.loadzvuk.gotoAndPlay("hotdogtalk_tonechci");
  49.          }
  50.          else
  51.          {
  52.             _root.hotdogtalk.gotoAndPlay("tonechci");
  53.          }
  54.       }
  55.    }
  56. }
  57.